<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <#include "/common/elibs.html">
        <meta charset="UTF-8">
        <title>欢迎页面-X-admin2.0</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
        <link rel="stylesheet" href="../admin/css/font.css">
        <link rel="stylesheet" href="../admin/css/xadmin.css">
    </head>
    <body>
    <div class="x-body layui-anim layui-anim-up">

        <style>
            .bzfc{
                width: 90%;
            }
            .bzfc div img{
                margin: 30px;
            }
        </style>
        <fieldset class="layui-elem-field">
            <legend>党务工作公告</legend>
            <div class="layui-field-box">
                <div class="bzfc" style="">
                    <div class="" id="proclamation1">
                        <img src="../admin/images/pro/123.jpeg" width="168px" height="179px"/>
                        <img src="../admin/images/pro/123.jpeg" width="168px" height="179px"/>
                        <img src="../admin/images/pro/123.jpeg" width="168px" height="179px"/>
                        <img src="../admin/images/pro/123.jpeg" width="168px" height="179px"/>

                    </div>
                </div>
            </div>
        </fieldset>
        <fieldset class="layui-elem-field">
            <legend>绩效考核公告</legend>
            <div class="layui-field-box">
                <div class="bzfc" style="">
                    <div class="" id="proclamation2">
                        <img src="../admin/images/pro/123.jpeg" width="168px" height="179px"/>
                        <img src="../admin/images/pro/123.jpeg" width="168px" height="179px"/>
                        <img src="../admin/images/pro/123.jpeg" width="168px" height="179px"/>
                        <img src="../admin/images/pro/123.jpeg" width="168px" height="179px"/>

                    </div>
                </div>
            </div>
        </fieldset>
        <fieldset class="layui-elem-field">
            <legend>业务工作公告</legend>
            <div class="layui-field-box">
                <div class="bzfc" style="" >
                    <div class="" id="proclamation3">
                        <img src="../admin/images/pro/123.jpeg" width="168px" height="179px"/>
                        <img src="../admin/images/pro/123.jpeg" width="168px" height="179px"/>
                        <img src="../admin/images/pro/123.jpeg" width="168px" height="179px"/>
                        <img src="../admin/images/pro/123.jpeg" width="168px" height="179px"/>

                    </div>
                </div>
            </div>
        </fieldset>
        <fieldset class="layui-elem-field">
            <legend>安全工作公告</legend>
            <div class="layui-field-box">
                <div class="bzfc" style="">
                    <div class="" id="proclamation4">
                        <img src="../admin/images/pro/123.jpeg" width="168px" height="179px"/>
                        <img src="../admin/images/pro/123.jpeg" width="168px" height="179px"/>
                        <img src="../admin/images/pro/123.jpeg" width="168px" height="179px"/>
                        <img src="../admin/images/pro/123.jpeg" width="168px" height="179px"/>

                    </div>
                </div>
            </div>
        </fieldset>

    </div>
    
    </body>
    <script>
        function forList(data){
            var html = "";
            for(var i=0;i<data.length;i++){
                html += "<img src='"+data[i].filePath+"' width='168px' height='179px'/>";
            }
            return html;
        }
        //班组图片查询
        $.ajax({
            url: path+'/pc/index/getWelcomeProclamationInfo',
            type: 'get',
            // contentType : 'application/json',
            // dataType: 'json',
            data: {"userBaseInfoId":$("#userBaseInfoId").val()},
            success:function(data){
                if(data.code != 0){
                    layer.open({
                        title: '提示信息'
                        ,content: data.message
                    });
                }else{
                    $("#proclamation1").html(forList(data.data.proclamation1));
                    $("#proclamation2").html(forList(data.data.proclamation2));
                    $("#proclamation3").html(forList(data.data.proclamation3));
                    $("#proclamation4").html(forList(data.data.proclamation4));



                }
            }

        })




    </script>
</html>